home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Belgian Amiga Club - ADF Collection
/
BS1 part 26.zip
/
BS1 part 26
/
The Director Toolkit v1.0.adf
/
Programs
/
CardGame
/
docs
< prev
Wrap
Text File
|
1987-02-25
|
1KB
|
40 lines
|c7|f2|t1CardGame Example|c3|f1|t0
The CardGame example contains several examples that can be useful when
designing your own games as well as other things. The script is heavily
commented, and can be explored to learn techniques for various types of
data manipulation.|r1
In the Card Game example for instance, shuffling of the |c752|c3 card deck
is performed by doing a sort of |c752|c3 random numbers. The sort routine
is a generalized heapsort algorithm, and can be used for other basic
sorting requirements.
|e
The Card Game is modularized, allowing each section to be treated as
a unit, and adjusted, removed, or inserted in other scripts as desired.|r1
Major modular sections are as follows:|r1
|c7|+61. Playing card display routine|r1
|+62. Deck shuffle routine|r1
|+63. Generic heapsort routine|r1
|+64. Poker hand evaluation routine|c3|r1
|e
These routines can be adjusted in various ways. For example, the playing
card display routine can be used to display any standard card anywhere on
screen, so it can be used to represent any type of card game display.|r1
The CardGame script is located in the|r1
|c7|+8ToolKit:Programs/CardGame|c3|r1
directory.|r1
Thanks to Jim McInnis for the great card designs and the associated
card display routine.